<?php
use common\service\StaticService;
use common\service\GlobalUrlService;
use backend\assets\AdminAsset;

StaticService::includeAppJsStatic(GlobalUrlService::buildStaticUrl('/backend/permission/index.js'),AdminAsset::class);

?>
<div class="layui-card">
    <div class="layui-card-header">权限组管理</div>
    <div class="layui-card-body">
        <form class="layui-form" id="serch-form">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <a href="<?= GlobalUrlService::buildAdminUrl('permission/add-group')?>" class="layui-btn layui-btn-normal addNews_btn ">添加权限组</a>
                </div>
            </div>
        </form>
        <div class="layui-form-item">
            <table class="layui-hide" id="user"  lay-filter="barDemo"></table>
        </div>
    </div>
</div>

<script type="text/html" id="barDemo">
    <a class="layui-btn layui-btn-xs" lay-event="getPerms">查看</a>
    <a class="layui-btn layui-btn-xs" lay-event="updateGroup">修改</a>
    <a class="layui-btn layui-btn-xs" lay-event="delGroup">删除</a>
</script>

<style>
    li{list-style: none;}
    .layui-layer-content{
        box-sizing:border-box;
    }
    .content-box{
        width: 250px;
        margin: 10px 0 10px 10px;
    }
    .contbox{
        padding-left: 30px;
    }
    .contbox2{
        padding-left: 60px;
    }
    .contbox3{
        padding-left: 90px;
    }
    .listO,.listT,.listTh{
        opacity: 1!important;
        margin: 0;
    }
</style>